local ads__tianyou = fk.CreateSkill {
  name = "ads__tianyou",
}

ads__tianyou:addEffect(fk.FinishJudge, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(ads__tianyou.name) and
      data.card and player.room:getCardArea(data.card) == Card.Processing and
      table.contains(data.results, "bad")
  end,
  on_use = function(self, event, target, player, data)
    player.room:obtainCard(player, data.card, true, fk.ReasonJustMove, player, ads__tianyou.name)
  end,
})


ads__tianyou:addAI({
  think_skill_invoke = Util.TrueFunc,
})

Fk:loadTranslationTable{
  ["$ads__tianyou1"] = "就这样吧。",
  ["$ads__tianyou2"] = "哦？",
  ["ads__tianyou"] = "天佑",
  [":ads__tianyou"] = "当一名角色的判定牌失效后，你可以获得之。",
}


return ads__tianyou
